import com.alibaba.fastjson.JSONObject;
import com.meirengu.utils.HttpUtil;

import java.util.Date;

public class pushTest {

    public static void main(String[] args) throws Exception {
        String url = "https://lo139.com/webview/sh/shBatch";
        /*String name = "贰捌柒";
        String channelNo = "dp_la_001";
        String screct = "diwlsdfe";
        String applyTime = "2018-08-22 14:03:21";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("channelNo", channelNo);
        jsonObject.put("name", name);
        jsonObject.put("sex", 0);
        jsonObject.put("idCard", "142701199504101518");
        jsonObject.put("areaCode", 140100);
        jsonObject.put("areaName", "太原");
        jsonObject.put("birthday", "1995-09-09");
        jsonObject.put("expectAmount", "30000");
        jsonObject.put("policy", 3);
        jsonObject.put("credit", 2);
        jsonObject.put("house", 3);
        jsonObject.put("car", 3);
        jsonObject.put("fund", 2);
        jsonObject.put("socialSecurity", 2);
        jsonObject.put("wxloan", 2);
        jsonObject.put("occupation", 2);
        jsonObject.put("workDuration", 24);
        jsonObject.put("salaryMethod", 2);
        jsonObject.put("salary",2);
        jsonObject.put("applyTime", applyTime);
        jsonObject.put("ip", "117.136.66.50");
        String signCurrent = MD5Util.MD5(channelNo + name +  screct + applyTime, "UTF-8");
        jsonObject.put("sign", signCurrent);
        jsonObject.put("mobileRegistration","太原");*/
        JSONObject jsonObject = new JSONObject();
        String str = "";
        for (int a = 0; a <= 10000; a++) {
            str += "0a7e5aec4db4563c2a49e094c1adffbd,";
        }
        str = str + "0a7e5aec4db4563c2a89e094c1adffbd,";
        str = str + "0a7e5aec4db4563c2a89e094c1cdffbd";
        HttpUtil.HttpResult hr = null;
        jsonObject.put("mobile", str);

        System.out.println(new Date().getTime());
        hr = HttpUtil.doPost(url, jsonObject.toString());
        System.out.println(new Date().getTime());
        String content = hr.getContent();
        JSONObject returnMsg = JSONObject.parseObject(content);
        String rCode = returnMsg.getString("code");
        String rMessage = returnMsg.getString("msg");
        System.out.println(rCode);
        System.out.println(rMessage);
        System.out.println(returnMsg.get("data"));

    }


}
